package com.example.windowdemo;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

public class ToastActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toast t = Toast.makeText(this, "测试", Toast.LENGTH_SHORT);
        t.show();
        t.cancel();
    }
}
